package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 码表明细表
 * </p>
 * @author 张永远
 * @since 2020-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_dic_business_item")
public class DicBusinessItemDo extends Model<DicBusinessItemDo> {

    private static final long serialVersionUID=1L;

    /**
     * 唯一识别id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * t_dic_business表id
     */
    @TableField("dic_business_id")
    private Long dicBusinessId;

    /**
     * 字典明细名称
     */
    @TableField("dic_item_value")
    private String dicItemValue;

    @TableField("sort")
    private Integer sort;

    @TableField("parent_id")
    private Long parentId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
